package com.cuijq.ms.filter;

import java.util.ArrayList;
import java.util.List;

public class Application {
    private List<Filter> filters = new ArrayList<>();

    public void handleRpcRequest(RpcRequest req) {
        try {
            for (Filter filter : filters) {
                filter.doFilter(req);
            }
        } catch (RpcException e) { // ...处理过滤结果...
        }
        // ...省略其他处理逻辑...
    }
}
